<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>绑定提现账户</title>
<meta name="viewport" content="width=device-width, initial-scale=1,user-scalable=no">
<link rel="stylesheet" href="<?php echo $_BASE_DIR ?>baodan/css/common.css">
<link rel="stylesheet" href="<?php echo $_BASE_DIR ?>baodan/css/upimg.css" >
<script type="text/javascript" src="<?php echo $_BASE_DIR ?>baodan/js/jquery-3.1.1.min.js"></script>
</head>
<body>


<header class="header">
    <a class="back" href="javascript:history.back(-1)"></a>
	<div class="title">绑定提现账户</div>
</header>
<div style="height:40px;"></div>

<form action="/my/bindaccount" name="form" method="post" enctype="multipart/form-data"  onsubmit="return true">
<div class="t-title">1，上传微信收款二维码</div>
<div class="img-box">

      <div class="inner-box">
    
       <img class="imgshow1" src= "<?php echo $user->wechat_qrcode?>"/></div>
    
      <div class="choose-img">
      <input type="file" name="wechatqrcode" id="wechatqrcode" />点击上传</div>
</div>

<div class="t-title">2，上传支付宝收款二维码</div>
<div class="img-box">
	 <div class="inner-box">
	 
	 <img  class="imgshow2" src= "<?php echo $user->alipay_qrcode ?> "/>
	
	 </div>
	 <div class="choose-img">
	  <input type="file" name="alipayqrcode" id="alipayqrcode" value="">	
	 点击上传</div>
</div>
<div style="height:70px;"></div>
 <input type="submit" class="ensure22" name="" value="确认"  />  
</form>


<script>

           $("#wechatqrcode").change(function(){
           	 var file = document.getElementById("wechatqrcode").files[0];
           	
             var imgurl = window.URL.createObjectURL(file);
             $(".imgshow1").attr('src',imgurl);
            });

           $("#alipayqrcode").change(function(){
           	 var file = document.getElementById("alipayqrcode").files[0];
             var imgurl = window.URL.createObjectURL(file);
             $(".imgshow2").attr('src',imgurl);
           });

           
           </script>
</body>
</html>
